package com.server.rule.data;

import com.shared.rule.TypeDataRule;

public class BooleanDataElement extends DataElement{

	private Boolean value;
	
	public BooleanDataElement(boolean isParameter) {
		super(isParameter);
		value=null;
	}
	
	public BooleanDataElement(boolean v,boolean isParameter) {
		super(isParameter);
		this.value = v;
	}
	
	@Override
	public TypeDataRule getTypeData() {
		return TypeDataRule.BOOLEAN;
	}

	@Override
	public DataValue<? extends Object> getValue() {
		return new DataValue<Boolean>(value);
	}

	public void setValue(boolean value){
		this.value = value;
	}
}
